def run(params:list[str]):
    from modelscope.pipelines import pipeline
    from modelscope.utils.constant import Tasks
    #pip install sentencepiece
    from modelscope.models.nlp import T5ForConditionalGeneration
    from modelscope.preprocessors import TextGenerationTransformersPreprocessor
    from ApiBase import apiBase
    try:
        model = T5ForConditionalGeneration.from_pretrained('ClueAI/PromptCLUE-base-v1-5', revision='v0.1')
        preprocessor = TextGenerationTransformersPreprocessor(model.model_dir)
        pipeline_t2t = pipeline(task=Tasks.text2text_generation, model=model, preprocessor=preprocessor)

        #print(pipeline_t2t("阅读文本抽取关键信息：\n张玄武1990年出生中国国籍无境外居留权博士学历现任杭州线锁科技技术总监。\n问题：机构，人名，职位，籍贯，专业，国籍，学历，种族\n答案："))
        cnt = apiBase.argv(1,'张玄武1990年出生中国国籍无境外居留权博士学历现任杭州线锁科技技术总监')
        req = apiBase.argv(2,'机构，人名，职位，籍贯，专业，国籍，学历，种族')

        prompt=f"阅读文本抽取关键信息:\n{cnt}\n问题:{req}\n答案:"
        print(pipeline_t2t(prompt))
        # {'text': '机构：杭州线锁科技技术_人名：张玄武_职位：博士学历'}
    finally:    
        apiBase.close()